#ifndef COMMANDPARSER_H_
#define COMMANDPARSER_H_

#include <iostream>
#include <string>
#include <sstream>
#include <algorithm>
#include <iterator>
#include <list>
#include <stdio.h>

using namespace std;

enum Command { SHARE = 0, LIST = 1, DOWNLOAD = 2, HELP = 3, EXIT = 4, UNKNOWN = 5 };

class CommandParser {

private:
	Command command;
	string commandString;
	list<string> parameters;

public:
	CommandParser();
	virtual ~CommandParser();

	bool parse(string line);
	Command getCommand();
	string getCommandString();
	list<string> getParameters();
};

#endif /* COMMANDPARSER_H_ */
